package com.buer.train.business.dao;

import com.buer.train.business.domain.UserRoleDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 用户与角色对应关系
 * @date 2021-02-23 16:48:27
 */
@Mapper
public interface UserRoleDao {

	UserRoleDO get(Integer id);
	
	List<UserRoleDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(UserRoleDO userRole);
	
	int update(UserRoleDO userRole);
	
	int remove(Integer id);
	
	int batchRemove(Integer[] ids);

    List<UserRoleDO> getUserRoleList(Map<String, Object> map);

    UserRoleDO getOne(Map<String, Object> map);

    int removeByUserId(Integer userId);
}
